package com.fengxing.ams.web.facade.mouble.order;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

public interface IOrderDAO extends PagingAndSortingRepository<OrderVO, String>, JpaSpecificationExecutor<OrderVO>  {

	@Query("select t from OrderVO t where t.userId=:userId")
	List<OrderVO> queryAllOrder(@Param("userId")Long userId);

}
